package cn.yunhe.util;


/**
 * 判断试题类型
 * @Author liu
 */
public class QuestionTypeUtil {
    public static int getQuestionType(String answer) {
        int typeId = 0;
        switch (answer) {
            case "A":
                typeId = 1;
                break;
            case "B":
                typeId = 1;
                break;
            case "C":
                typeId = 1;
                break;
            case "D":
                typeId = 1;
                break;
            case "T":
                typeId = 3;
                break;
            case "F":
                typeId = 3;
                break;
        }
        return typeId;

    }
}
